﻿#region

using System.Linq;

#endregion

namespace HouseHoldBudget.Core.Data
{
    /// <summary>
    ///   Repository
    /// </summary>
    public interface IRepository<T> where T : BaseEntity
    {
        #region Instance Properties

        IQueryable<T> Table { get; }

        #endregion

        #region Instance Methods

        void Delete(T entity);
        void DeleteById(object id);
        T GetById(object id);
        void Insert(T entity);
        void Update(T entity);

        #endregion
    }
}